<?php
namespace Library\Error;

class A404 {

    public static $default = '';

    public static function show()
    {
        ob_start();
        if(file_exists(self::$default)) {
            echo file_get_contents(self::$default);
        } else {
            echo '
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>404 File Not Found</title>
</head>
<body>
<h1>404 File Not Found</h1>
</body>
</html>
';
        }
        ob_end_flush();
    }

}